package cn.blog.service.back;

import java.util.List;

import cn.blog.dao.back.ManagePeopleDao;
import cn.blog.entity.origin.ManagePeople;

/**
 * 后台管理员业务类
 * 1.查询所有管理员名称
 * @author zjk
 *
 */
public class ManagePeopleService {
	private ManagePeopleDao mpd;

	/**
	 * 无参构造，初始化
	 */
	public ManagePeopleService() {
		mpd = new ManagePeopleDao();
	}
	/**
	 * 1.查询所有管理员名称
	 * @return
	 */
	public List<ManagePeople> getManaName(){
		return mpd.getManaName();
	}
	/**
	 * 2.添加管理员
	 * @param manaName
	 * @return
	 */
	public int addManaName(String account, String manaName,String password,String phone){
		return mpd.addManaName(account,manaName,password,phone);
		
	}
	/**
	 * 3.根据管理员id删除管理员
	 * @param id
	 * @return
	 */
	public int delEmployee(int id){
		return mpd.delEmployee(id);
		
	}
	
	
}
